package com.killer.sqlSession;

import com.killer.pojo.Configuration;
import com.killer.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

public interface Executor  {

    public <T> List<T> query(Configuration configuration, MappedStatement mappedStatement, Object... params) throws SQLException, ClassNotFoundException, NoSuchFieldException, IllegalAccessException, InstantiationException;

    public int update(Configuration configuration, MappedStatement mappedStatement, Object... params) throws SQLException, ClassNotFoundException, NoSuchFieldException, IllegalAccessException;
}
